package com.ruoyi.nwbd.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.jackson.JsonTypeHandler;
import lombok.Data;



/**
 * 个人信息视图对象 person
 *
 * @author syc
 * @date 2025-04-04
 */
@Data
@ExcelIgnoreUnannotated
public class PersonVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄")
    private Long age;

    /**
     * 性别（男、女、未知）
     */
    @ExcelProperty(value = "性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_user_sex")
    private String sex;

    /**
     * 个人信息详情
     */
    @ExcelProperty(value = "个人信息详情")
    @TableField(typeHandler = JsonTypeHandler.class)
    private String infoDetail;


}
